name: pre-commit run_id: commands[2] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit/bin:/opt/pyenv/bin:/tmp/venv-Tcnu/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 996226433 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env OLM_TIMER1: 3000 env OLM_TIMER2: 2000 env TOX_ENV_NAME: pre-commit env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit metadata pid: 2492 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit/bin/*:sh:cpan:sudo:which:fixCIcentOS8reposMirrors.sh cmd: pre-commit run --all-files --show-diff-on-failure exit_code: 1 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. [INFO] Initializing environment for https://github.com/perltidy/perltidy. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/perltidy/perltidy. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Passed Tabs remover.............................................................Passed autopep8.................................................................Failed - hook id: autopep8 - files were modified by this hook perltidy.................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/tests/transportpce_tests/pce/test02_pce_400G.py b/tests/transportpce_tests/pce/test02_pce_400G.py index e8ad2347d..50b1527b2 100644 --- a/tests/transportpce_tests/pce/test02_pce_400G.py +++ b/tests/transportpce_tests/pce/test02_pce_400G.py @@ -369,9 +369,9 @@ class TransportPCE400Gtesting(unittest.TestCase): response['output']['configuration-response-common']['response-message']) self.assertEqual(0, response['output']['response-parameters']['path-description'] - ['aToZ-direction']['aToZ-wavelength-number']) + ['aToZ-direction']['aToZ-wavelength-number']) self.assertEqual(400, response['output']['response-parameters']['path-description'] - ['aToZ-direction']['rate']) + ['aToZ-direction']['rate']) self.assertEqual(196.0375, float(response['output']['response-parameters']['path-description'] ['aToZ-direction']['aToZ-min-frequency'])) self.assertEqual(196.125, float(response['output']['response-parameters']['path-description'] @@ -379,12 +379,12 @@ class TransportPCE400Gtesting(unittest.TestCase): self.assertEqual(196.08125, float(response['output']['response-parameters']['path-description'] ['aToZ-direction']['central-frequency'])) self.assertEqual('dp-qam16', response['output']['response-parameters']['path-description'] - ['aToZ-direction']['modulation-format']) + ['aToZ-direction']['modulation-format']) self.assertEqual(0, response['output']['response-parameters']['path-description'] - ['zToA-direction']['zToA-wavelength-number']) + ['zToA-direction']['zToA-wavelength-number']) self.assertEqual(400, response['output']['response-parameters']['path-description'] - ['zToA-direction']['rate']) + ['zToA-direction']['rate']) self.assertEqual(196.0375, float(response['output']['response-parameters']['path-description'] ['zToA-direction']['zToA-min-frequency'])) self.assertEqual(196.125, float(response['output']['response-parameters']['path-description'] @@ -392,11 +392,10 @@ class TransportPCE400Gtesting(unittest.TestCase): self.assertEqual(196.08125, float(response['output']['response-parameters']['path-description'] ['zToA-direction']['central-frequency'])) self.assertEqual('dp-qam16', response['output']['response-parameters']['path-description'] - ['zToA-direction']['modulation-format']) + ['zToA-direction']['modulation-format']) self.assertEqual(response['status_code'], requests.codes.ok) time.sleep(2) - if __name__ == "__main__": unittest.main(verbosity=2)